package cn.chiship.framework.upms.biz.user.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author LiJian
 */
@ApiModel(value = "权限表单")
public class UpmsPermissionDto {

    @ApiModelProperty(value = "所属菜单")
    @NotNull
    @Length(min = 1)
    private String pid;

    @ApiModelProperty(value = "权限名称")
    @NotNull
    @Length(min = 1)
    private String name;

    @ApiModelProperty(value = "权限值")
    @NotNull
    @Length(min = 1)
    private String permissionValue;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序" + TipConstants.NOT_EMPTY)
    @Min(0)
    private Long orders;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPermissionValue() {
        return permissionValue;
    }

    public void setPermissionValue(String permissionValue) {
        this.permissionValue = permissionValue;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }
}